package components;

import android.graphics.Canvas;
import android.graphics.Paint;


public abstract class GraphicalObject{
	private int posX;
	private int posY;
	private int posZ;
	private boolean visible;
	private boolean clickable;
	private Paint paint;
	private boolean valid;
	
	public abstract void draw(Canvas c);
	
	public int getPosX() {
		return posX;
	}
	public void setPosX(int posX) {
		this.posX = posX;
	}
	public int getPosY() {
		return posY;
	}
	public void setPosY(int posY) {
		this.posY = posY;
	}
	public int getPosZ() {
		return posZ;
	}
	public void setPosZ(int posZ) {
		this.posZ = posZ;
	}
	public boolean isVisible() {
		return visible;
	}
	public void setVisible(boolean visible) {
		this.visible = visible;
	}
	public boolean isClickable() {
		return clickable;
	}
	public void setClickable(boolean clickable) {
		this.clickable = clickable;
	}
	public Paint getPaint() {
		return paint;
	}
	public void setPaint(Paint paint) {
		this.paint = paint;
	}
	public void validate(){
		this.valid = true;
	}
	public void invalidate(){
		this.valid = false;
	}
	public boolean isValid(){
		return this.valid;
	}
	
}
